-
Notifications
You must be signed in to change notification settings - Fork 654
Fix the skipped test in dotnet #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a previously skipped test Can_Return_Binary_Result in the .NET SDK by adding the necessary JSON serialization support and creating the corresponding test snapshot file.
Changes:
- Added
ToolResultAIContenttype to the JSON serialization context to properly serialize binary tool results - Unskipped the test and added
serializerOptionsparameter toAIFunctionFactory.Create - Created snapshot file
can_return_binary_result.yamlwith expected conversation flow for binary result testing
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/snapshots/tools/can_return_binary_result.yaml | Adds test snapshot defining expected conversation flow for binary image result, showing both intermediate and complete states |
| dotnet/test/ToolsTests.cs | Unskips test, adds ToolResultAIContent to JSON context, provides serializerOptions to AIFunctionFactory, and changes assertion method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The test
Can_Return_Binary_Resultwas skipped. Made the necessary changes to correct it and unskipped it.